Optimal. Leaf size=23 \[ \log \left (-2 \sqrt {b x+c x^2+1}-b x-2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.17, number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {724, 206} \begin {gather*} \tanh ^{-1}\left (\frac {b x+2}{2 \sqrt {b x+c x^2+1}}\right )+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rubi steps
\begin {align*} \int \left (\frac {1}{x}-\frac {1}{x \sqrt {1+b x+c x^2}}\right ) \, dx &=\log (x)-\int \frac {1}{x \sqrt {1+b x+c x^2}} \, dx\\ &=\log (x)+2 \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {2+b x}{\sqrt {1+b x+c x^2}}\right )\\ &=\tanh ^{-1}\left (\frac {2+b x}{2 \sqrt {1+b x+c x^2}}\right )+\log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 27, normalized size = 1.17 \begin {gather*} \tanh ^{-1}\left (\frac {b x+2}{2 \sqrt {b x+c x^2+1}}\right )+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.17, size = 58, normalized size = 2.52 \begin {gather*} 2 \log \left (\sqrt {b x+c x^2+1}-\sqrt {c} x+1\right )-\log \left (-2 \sqrt {c} \sqrt {b x+c x^2+1}+b+2 c x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 30, normalized size = 1.30 \begin {gather*} \log \relax (x) - \log \left (-\frac {b x - 2 \, \sqrt {c x^{2} + b x + 1} + 2}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.26, size = 50, normalized size = 2.17 \begin {gather*} \log \left ({\left | -\sqrt {c} x + \sqrt {c x^{2} + b x + 1} + 1 \right |}\right ) - \log \left ({\left | -\sqrt {c} x + \sqrt {c x^{2} + b x + 1} - 1 \right |}\right ) + \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 24, normalized size = 1.04 \begin {gather*} \arctanh \left (\frac {b x +2}{2 \sqrt {c \,x^{2}+b x +1}}\right )+\ln \relax (x ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.09, size = 27, normalized size = 1.17 \begin {gather*} \ln \left (\frac {b}{2}+\frac {\sqrt {c\,x^2+b\,x+1}}{x}+\frac {1}{x}\right )+\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {b x + c x^{2} + 1} - 1}{x \sqrt {b x + c x^{2} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________